<?php

class imageTable extends Doctrine_Table
{
    public function getImage($id){
        $q = $this->createQuery('a')->where('a.product_id = ?', $id)->orderBy('a.ordering ASC')->fetchOne();
        return $q;
    }
}
